<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateTGoodsTables extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
         Schema::create('t_goods', function (Blueprint $table) {

           
            $table->increments('gid');
            $table->bigInteger('type_id');
            $table->string('gname');
            $table->string('gprice');
            $table->string('home') -> default('德州');
            $table->tinyInteger('state') -> default(1);
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
         Schema::drop('t_goods');
    }
}
